const express = require('express');
const router = express.Router();
const search = require('../../controller/search')
const auth = require('../../middleware/webAuth')
const error= require('../../middleware/err-handle')

// 搜索
router.get('/', auth(), search.search)

//错误处理中间键
router.use(error())

module.exports = router